﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.Framework.Process;

namespace PSE.ProcessManager.Common.Process
{
    public class ExecutorProcessManager : HierarchicalProcessManager<InteligenceManagerInstanceProcess,
                                                                     PSE.Framework.Process.HierarchicalProcess,
                                                                     IProcessService,
                                                                     ExecutorProcessManager>
    {
        protected override Uri GetServiceAddress()
        {
            return new Uri(string.Format("net.pipe://localhost/Executor/{0}", this.Name));
        }

        protected override IProcessService CreateServiceInstance()
        {
            return new ProcessService();
        }
    }
}
